import React, { FC } from 'react'
import { Wrap } from './style'
export interface ListFormItemProps {
	width?: number
	height?: number
	label: string
}
export const ListFormItem: FC<ListFormItemProps> = (props) => {
	return (
		<Wrap style={{ height: `${props.height}px` }}>
			<div className="list-form-item__label" style={{ width: `${props.width}px` }}>
				{props.label}
			</div>
			<div className="list-form-item__input">{props.children}</div>
		</Wrap>
	)
}
ListFormItem.defaultProps = {
	width: 68,
	height: 26,
}
